<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div class="col-sm-2 col-lg-2">
            <div class="sidebar-nav">
                <div class="nav-canvas">
                    <div class="nav-sm nav nav-stacked">
                    </div>
                    <ul class="nav nav-pills nav-stacked main-menu">
                    	<s:iterator value="menu" id="r">
                        	<s:iterator value="%{#r.child}" id="c">
                        		<li class="nav-header"><s:property value="#c.name"/></li>
                        		<s:iterator value="%{#c.child}" id="cc">
	                               	<li><a class="ajax-link" href="<%=basePath%><s:property value="#cc.url"/>"><s:property value="#cc.name"/></a></li>
	                            </s:iterator>
		                    </s:iterator>
                   		</s:iterator>  
                    </ul>
                </div>
            </div>
        </div>